<%@ page import="cn.aloxc.stock.tools.XlsExportService" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%
def d = new Date();
def sdf = new SimpleDateFormat("yyyy-MM-dd");
d = sdf.format(d);
XlsExportService xlsExportService = new XlsExportService();
response.setHeader("Content-disposition", "attachment; filename=StatStockByAloxc_${d}.xls")
response.setContentType("application/vnd.ms-excel")
def domains = [];
grailsApplication.domainClasses.each{
    domains << it.fullName;
}
def result = xlsExportService.xlsExportData(response.outputStream, request,domains);
%>
